﻿using CIS.Common.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CIS.Server.Manager.Job
{
    public interface IJobManager
    {
        Task<JobEntity> GetJobByJobIdAsync(string jobId);
        Task<JobEntity> GetJobByGlassCodeAsync(string glassCode);
        Task<List<JobEntity>> GetJobsByPortIdAsync(string? portId);
        Task<List<JobEntity>> GetJobsByLotIdAsync(string lotId);
        Task<List<JobEntity>> GetAllJobsAsync();
        Task<bool> AddJobAsync(JobEntity entity);        
        Task<bool> AddManyJobsAsync(List<JobEntity> entitys);
        Task<bool> UpdateManyJobsAsync(List<JobEntity> entitys);
        Task<bool> UpdateJobAsync(JobEntity entity);
        Task<bool> DeleteManyJobsAsync(List<JobEntity> entitys);
        Task<bool> DeleteJobAsync(JobEntity entity);
    }
}
